// 入口文件

// 引入包
// import Vue from 'Vue'
import Vue from 'vue'
import store from './store'
import App from './App.vue'
import router from './router'
import directives from './directives'
import ElementComponent from 'element-component'
import iconPicker from 'e-icon-picker';
import "e-icon-picker/dist/symbol.js"; //基本彩色图标库
import 'e-icon-picker/dist/index.css'; // 基本样式，包含基本图标
import 'font-awesome/css/font-awesome.min.css'; //font-awesome 图标库
import 'element-ui/lib/theme-chalk/icon.css'; //element-ui 图标库
import Print from 'vue-print-nb'

// import Print from '@/assets/js/print.js'
import Moment from 'moment'
import 'normalize.css'
import './assets/style/globalstyle.css'
import VueBarcode from "vue-barcode";

// 定义全局时间戳过滤器
Vue.filter('formatDate', function(value) {
  return Moment(value).format('YYYY-MM-DD HH:mm:ss')
})
Vue.filter('formatDateYMD', function(value) {
  return Moment(value).format('YYYY-MM-DD')
})
 
// Vue.use(common);
Vue.use(directives);
Vue.use(ElementComponent);
Vue.use(iconPicker, {FontAwesome: false, ElementUI: true, eIcon: false, eIconSymbol: false});
Vue.use(Print);  //注册
Vue.component('barcode', VueBarcode);
Vue.prototype.$moment = Moment;//赋值使用

Vue.config.productionTip = false;
const vm = new Vue({
	el:'#app',
    store,
	router,
	render:c => c(App),
});
